<?php


class EmsOrganizationTable extends Doctrine_Table
{
    
    public static function getInstance()
    {
        return Doctrine_Core::getTable('EmsOrganization');
    }

    public function getWithPortals()
    {
      $q = $this->createQuery('o')
        ->leftJoin('o.EmsPortal p');

      return $q->execute();
    }
}